import request from '@/utils/request'
// 上传配置文件
export function uploadFile (data) {
  return request({
    url: '/api/file/fileUpload',
    method: 'post',
    data: data
  })
}
//  下载配置文件
export function download (configVersionId) {
  window.open('/api/file/download?configVersionId=' + configVersionId, '_self')
  // return request({
  //   url: '/api/file/download?configVersionId=' + configVersionId,
  //   method: 'GET'
  // })
}
